package com.fastCms.business.mall.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fastCms.business.frame.config.BigDecimalValueFilter;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;


/**
 * <p>
 * 商品常用字段字段数据
 * </p>
 *
 * @author lsquan
 * @since 2019-06-15
 */
@ApiModel(value = "ProductCommonInfoVO-产品常用数据", description = "常用字段数据")
@Data
public class ProductCommonInfoVO {

    @ApiModelProperty(value = "商品主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "产品类型（实物商品,服务商品）")
    private String productType;

    @ApiModelProperty(value = "产品代码")
    private String productCode;

    @ApiModelProperty(value = "产品编号")
    private String productNumber;

    @ApiModelProperty(value = "商品首图")
    private String mainImageUrl;

    @ApiModelProperty(value = "产品单价")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "产品原价")
    @JsonSerialize(using = BigDecimalValueFilter.class)
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "商城销售总数")
    private Integer storeSaleCount;

    @ApiModelProperty(value = "是否有sku  1：是 0：否")
    private Integer hasSku;

}
